package gui.toolbox;

import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.event.ListSelectionListener;

import model.Node;

public class NodeList extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2424236847501028468L;
	private String[] items = Node.getNames();
	private JList list = new JList(items);


	public NodeList() {
		super();
		JScrollPane pane = new JScrollPane(list);
		this.add(pane);
	}
	
	public void addListener(ListSelectionListener l){
		list.addListSelectionListener(l);
	}
}
